package Views;

import UCM.UCDisplayBuyTicket;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JPanel;

/**
 *
 * @author Joshua King
 */
public class ViewDisplayBuyTicket extends JPanel {
    protected JButton buyTicketButton = new JButton("Make Airport");
    private final UCDisplayBuyTicket UCDisplayBuyTicket = new UCDisplayBuyTicket(this);

    public ViewDisplayBuyTicket() {
        setLayout(new FlowLayout());
        add(buyTicketButton);
        buyTicketButton.addActionListener(new AdapterUCCToAL(UCDisplayBuyTicket));
    }

    public void setBuyTicketVisible() {
        ViewMain.getInstance().updateBuyTicket();
    }

}
